            <div id="menu" class="easyui-accordion"  data-options="border:false,fit:true">
                <!-- a标签url属性中填写（/控制器名称/视图名称） -->

					<%
					set rs=server.createobject("adodb.recordset")
					set rss=server.createobject("adodb.recordset")
					sql="select id,name,iconCls from basic_treeNav where fatherID=0 and isshow=1 order by paixu"
					rs.open sql,conn,1,1
					for r=1 to rs.recordcount
					F_ID=int(rs("ID"))
					'url_f=Trim(rs("url"))
					%>


                <div title="<%=Trim(rs("name"))%>" data-options="iconCls:'<%=Trim(rs("iconCls"))%>'" style="overflow:auto;padding:5px;border:false">
                    <ul class="easyui-tree">
							<%
							sqls="select id,name,url,fatherid,iconCls from basic_treeNav where fatherID="&F_ID&" and isshow=1 order by paixu"
							rss.open sqls,conn,1,1
							for s=1 to rss.recordcount
							S_ID=int(rss("ID"))
							%>
							<li iconCls="<%=Trim(rss("iconCls"))%>"><a href="javascript:void(0)" onclick="addTab('<%=Trim(rss("name"))%>','<%=trim(rss("URL"))%>')" ><%=Trim(rss("name"))%></a></li>

							<%
							rss.moveNext
							Next
							rss.close
							%>
                    </ul>
                </div>
				<%
				rs.moveNext
				Next
				rs.close
				%>
			</div>


<script type="text/javascript">

function addTab(title, url){
	if ($('#tabs').tabs('exists', title)){
		$('#tabs').tabs('select', title);
	} else {
		var content = '<iframe scrolling="auto" frameborder="0"  src="'+url+'" style="width:100%;height:99%;"></iframe>';
		$('#tabs').tabs('add',{
			title:title,
			content:content,
			closable:true
		});
	}
}

</script>
